{loop $contents $i $content}
{if is_array($content)}
{$content[0]}
{else}
{$content}
{/if}
{/loop}